/**
 * 
 */
package org.tigris.elfin.postfix;

import java.io.*;
import java.util.Map;

import org.tigris.elfin.ExpressionProcessor;

/**
 * @author zhisen.huang
 * 
 */
public class PostfixExpressionProcessor implements ExpressionProcessor {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.tigris.elfin.ExpressionProcessor#evaluate(java.lang.String,
	 *      java.util.Map)
	 */
	public String evaluate(String expression, Map<String, Object> params)
			throws Exception {
		PostfixEL postfix = new PostfixEL(new StringReader(expression));
		postfix.assign(params);
		return postfix.start();
	}

}
